<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
</head>

<body>
  <%- include('head',{title:'首页'}) %>
  <h1>
    <%= title %>
  </h1>
  <h1>
    <%= msg %>
  </h1>
  <h1>
    <%= flag?'十一出去玩':'十一好好写代码' %>
  </h1>
  <p>
    <%- text %>
  </p>
  <p>
    <%= html %>
  </p>
  <p>Welcome to <%= title %>
  </p>
  <hr>
  <div>
    <% if(username){ %>
      <h2>欢迎客户：<%- username %>
      </h2>
      <button onclick="location.href='/home'">进入电影主页</button>
      <button onclick="location.href='/logout'">注销登录</button>
      <% }else{ %>
        <button onclick="location.href='/login'">登录</button>
        <button onclick="location.href='/register'">注册</button>
        <% } %>
  </div>
  <hr>
  <div>
    <%  list.forEach((item,index)=>{  %>
        <h2><%- item %></h2> <h2><%- index %></h2>
        <%  }) %>
  </div>
  <%- include('foot')%>
</body>

</html>